<?php
//+--------------------------------------------
//|描述  读取文件
//|--------------------------------------------
//|Created by PhpStorm.
//| Author: DRG
//+-------------------------------------------
//|Date: 2018/5/29
//| Time: 11:56
//+--------------------------------------------

swoole_async_readfile(__DIR__."/1.txt", function ($filename, $fileContent){
    
    echo "filename:".$filename.PHP_EOL;
    echo "fileContent:". $fileContent.PHP_EOL;
});